package org.jradweb.core.taglib;

import java.io.IOException;

import javax.servlet.jsp.JspException;

public class RemoteJsTag extends UriTag {

	@Override
	public int doEndTag() throws JspException {
		this.setType(UriTag.PAGE_TYPE_JS);
		try {
			this.pageContext.getOut().write("j.getScript('");
			Integer result= super.doEndTag();
			this.pageContext.getOut().write("'); ");
			
			return result;
		} catch (IOException e) {
			throw new JspException(e);
		}
	}

}
